import * as NS from "../../Common/NetServices";
import { IsNull } from "../../TYLibrary/Common/GlobalExtend";
import { Wx_XSPPage } from "../../Common/Entitys";
import { Log } from "../../TYLibrary/System/Logger";
import { Wx_PageData, WXDataClassRuntimeDecorator } from "../../Common/EntityBase";

@WXDataClassRuntimeDecorator()
class LogisticsPageData extends Wx_PageData {
    public scrollHeight: number = 0;
}

class LogisticsPage extends Wx_XSPPage {
    public Data: LogisticsPageData = new LogisticsPageData();

    /**
     * 初始化页面信息
     * @param options
     */
    public async InitData(options: any): Promise<void> {
        wx.getSystemInfo({
            success: res => {
                this.Data.scrollHeight = res.windowHeight;
                this.Data.ApplyChange(this);
            }
        });
    }
}

Page(new LogisticsPage());
